<template>
  <div class="workHome">
    <div class="welcome">
      <img class="avatar" src="../../assets/workspace/avatar.png" alt="" />
      <div class="saying">
        <span class="welcome-saying">晚上好！</span>
        <div class="well-known-saying">明月出天山，苍茫云海间。 --李白</div>
      </div>
    </div>

    <div class="my-portfolio-data-info">
      <div class="accessData">
        <div class="title">网页访问量</div>
        <div class="data">
          <img src="../../assets/workspace/access-data-icon.png" alt="" />
          <span>126,560</span>
        </div>
        <div class="avg">日均访问量 1,423</div>
      </div>
      <div class="accessData">
        <div class="title">关注数</div>
        <div class="data">
          <img src="../../assets/workspace/guanzhu.png" alt="" />
          <span>126,560</span>
        </div>
        <div class="avg">日均访问量 1,423</div>
      </div>
      <div class="accessData">
        <div class="title">粉丝数</div>
        <div class="data">
          <img src="../../assets/workspace/fensi.png" alt="" />
          <span>126,560</span>
        </div>
        <div class="avg">日均访问量 1,423</div>
      </div>
      <div class="accessData">
        <div class="title">点赞</div>
        <div class="data">
          <img src="../../assets/workspace/dianzan.png" alt="" />
          <span>126,560</span>
        </div>
        <div class="avg">日均访问量 1,423</div>
      </div>
    </div>


  </div>
</template>

<script>
export default {
  name: "workHome",
};
</script>

<style scoped>
.workHome {
  width: 100%;
}
.welcome {
  height: 137px;
  min-width: 800px;
  background-color: white;
  margin-bottom: 30px;
  padding: 30px;
  box-sizing: border-box;
}
.welcome .avatar {
  width: 77px;
  height: 77px;
  margin-right: 30px;
  float: left;
}
.saying {
  height: 100%;
  width: 200px;
  padding: 12px;
  float: left;
  box-sizing: border-box;
  position: relative;
}
.welcome-saying {
  font-size: 20px;
  font-weight: 600;
  display: block;
}
.well-known-saying {
  position: absolute;
  width: 100%;
  bottom: 12px;
  color: #74798c;
  font-style: italic;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-portfolio-data-info {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-bottom: 20px;
}
.accessData {
  flex: 1;
  margin-right: 20px;
  min-width: 240px;
  height: 200px;
  padding: 20px 30px;
  box-sizing: border-box;
  background-color: white;
}
.accessData:last-child {
  margin-right: 0;
}
.title {
  font-size: 14px;
  color: #74798c;
}
.data {
  margin-top: 20px;
  width: 100%;
  overflow: hidden;
  height: 32px;
  line-height: 32px;
  font-size: 32px;
  font-weight: 600;
}
.data img {
  float: left;
  width: 32px;
  height: 32px;
  margin-right: 20px;
}
.avg {
  margin-top: 20px;
  color: #74798c;
  font-size: 14px;
}
</style>